package com.example.index.gesture

import android.os.Bundle
import com.cat.annotation.Index
import com.example.index.BaseIndexActivity
import com.example.index.R
import com.example.index.extension.quickStartActivity


@Index(
    keywords = "手势监听(索引)",
    link = "https://www.gcssloop.com/customview/gestruedector"
)
class GestureIndexActivity : BaseIndexActivity() {

    val items = arrayListOf<Pair<String, Class<*>>>()

    override fun handleItemClick(index: Int, title: String) = quickStartActivity(items[index].second)

    override fun getData(): List<String> {
        items.addAll(
            arrayListOf(
                Pair(getString(R.string.gesture_base_detect), GestureBaseDetectActivity::class.java),
                Pair(getString(R.string.gesture_scale_detect), GestureScaleDetectActivity::class.java)
            )

        )

        return items.map { it.first }.toList()

    }
}
